package cn.swh.guguanjia.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import cn.swh.guguanjia.entity.AppVersion;
import cn.swh.guguanjia.service.AppVersionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class AppVersionServicelmpl extends BaseServicelmpl<AppVersion,Long> implements AppVersionService {


    @Override
    public PageInfo<AppVersion> selectPage(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
//        List<AppVersion> appVersions = mapper.selectAll();
        AppVersion appVersion = new AppVersion();
        appVersion.setDelFlag("0");
        List<AppVersion> appVersions = mapper.select(appVersion);
        PageInfo<AppVersion> pageInfo = new PageInfo<>(appVersions);
//        String str=null;
//        str.length();
        return pageInfo;
    }

}
